package llvmir.type;

public class PointerType extends Type {
    // 指针类型，gv,alloca,getElementPtr 指令都是指针类型
    private Type point;

    public PointerType(Type type) {
        this.point = type;
    }

    public Type getPoint() {
        return point;
    }

    @Override
    public String toString() {
        return point.toString() + "*";
    }

    @Override
    public int getSize() {
        return 4;
    }
}
